package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. FZLXJBSJDao;
import com.capinfo.accumulation.model.accounting.mybist. FZLXJBSJ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.FZLXJBSJServiceI;

@Service("fZLXJBSJService")
public class  FZLXJBSJServiceImpl implements  FZLXJBSJServiceI {
	
	@Autowired
	 FZLXJBSJDao  fZLXJBSJDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.fZLXJBSJDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(FZLXJBSJ record) {
		return this.fZLXJBSJDao.insertSelective(record);
	}

	@Override
	public FZLXJBSJ selectByPrimaryKey(String id) {
		return this.fZLXJBSJDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(FZLXJBSJ record) {
		return this.fZLXJBSJDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<FZLXJBSJ> retList = this.fZLXJBSJDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

	@Override
	public List<Map<String, Object>> hslx() {
		
		return this.fZLXJBSJDao.hslx();
	}

}
